diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-02-05 12:08:31 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-02-05 12:08:31 +0100 |
commit | b21dda438baa450a76a375a35653ae0377793fab (patch) | |
tree | 879c11086ca038c8ca1ccd8e829c40a317675b94 /fs/fuse/dev.c | |
parent | abe94c756c08d50566c09a65b9c7fe72f83071c5 (diff) | |
download | linux-b21dda438baa450a76a375a35653ae0377793fab.tar.bz2 |
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/dev.c')
-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, down_read(&fc->killsb); err = -ENOENT; - if (!fc->sb) - goto err_unlock; - - err = fuse_reverse_inval_inode(fc->sb, outarg.ino, - outarg.off, outarg.len); - -err_unlock: + if (fc->sb) { + err = fuse_reverse_inval_inode(fc->sb, outarg.ino, + outarg.off, outarg.len); + } up_read(&fc->killsb); return err; @@ -910,12 +907,8 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, down_read(&fc->killsb); err = -ENOENT; - if (!fc->sb) - goto err_unlock; - - err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name); - -err_unlock: + if (fc->sb) + err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name); up_read(&fc->killsb); return err; |