Commit 26558ce
btrfs: simplify condition for logging new dentries at btrfs_log_inode_parent()
There's no point in checking if the inode is a directory as
ctx->log_new_dentries is only set in case we are logging a directory down
the call chain of btrfs_log_inode(). So remove that check making the logic
more simple and while at it add a comment about why use a local variable
to track if we later need to log new dentries.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 37b0c31 commit 26558ce
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7036 | 7036 | | |
7037 | 7037 | | |
7038 | 7038 | | |
7039 | | - | |
| 7039 | + | |
7040 | 7040 | | |
7041 | 7041 | | |
7042 | 7042 | | |
| |||
7090 | 7090 | | |
7091 | 7091 | | |
7092 | 7092 | | |
7093 | | - | |
7094 | | - | |
| 7093 | + | |
| 7094 | + | |
| 7095 | + | |
| 7096 | + | |
| 7097 | + | |
7095 | 7098 | | |
7096 | 7099 | | |
7097 | 7100 | | |
| |||
0 commit comments