diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-02-05 06:08:31 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-02-05 06:08:31 -0500 |
commit | b21dda438baa450a76a375a35653ae0377793fab (patch) | |
tree | 879c11086ca038c8ca1ccd8e829c40a317675b94 /fs/fuse | |
parent | abe94c756c08d50566c09a65b9c7fe72f83071c5 (diff) |
fuse: cleanup in fuse_notify_inval_...()
Small cleanup in fuse_notify_inval_inode() and
fuse_notify_inval_entry().
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 51d9e33d634f..ab622305c2f5 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -865,13 +865,10 @@ static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size, | |||
865 | 865 | ||
866 | down_read(&fc->killsb); | 866 | down_read(&fc->killsb); |
867 | err = -ENOENT; | 867 | err = -ENOENT; |
868 | if (!fc->sb) | 868 | if (fc->sb) { |
869 | goto err_unlock; | 869 | err = fuse_reverse_inval_inode(fc->sb, outarg.ino, |
870 | 870 | outarg.off, outarg.len); | |
871 | err = fuse_reverse_inval_inode(fc->sb, outarg.ino, | 871 | } |
872 | outarg.off, outarg.len); | ||
873 | |||
874 | err_unlock: | ||
875 | up_read(&fc->killsb); | 872 | up_read(&fc->killsb); |
876 | return err; | 873 | return err; |
877 | 874 | ||
@@ -910,12 +907,8 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, | |||
910 | 907 | ||
911 | down_read(&fc->killsb); | 908 | down_read(&fc->killsb); |
912 | err = -ENOENT; | 909 | err = -ENOENT; |
913 | if (!fc->sb) | 910 | if (fc->sb) |
914 | goto err_unlock; | 911 | err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name); |
915 | |||
916 | err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name); | ||
917 | |||
918 | err_unlock: | ||
919 | up_read(&fc->killsb); | 912 | up_read(&fc->killsb); |
920 | return err; | 913 | return err; |
921 | 914 | ||