forked from luck/tmp_suning_uos_patched
fuse: redundant get_fuse_inode() calls in fuse_writepages_fill()
Currently fuse_writepages_fill() calls get_fuse_inode() few times with the same argument. Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
9de55a37fc
commit
091d1a7267
|
@ -2001,7 +2001,7 @@ static int fuse_writepages_fill(struct page *page,
|
|||
|
||||
if (!data->ff) {
|
||||
err = -EIO;
|
||||
data->ff = fuse_write_file_get(fc, get_fuse_inode(inode));
|
||||
data->ff = fuse_write_file_get(fc, fi);
|
||||
if (!data->ff)
|
||||
goto out_unlock;
|
||||
}
|
||||
|
@ -2046,8 +2046,6 @@ static int fuse_writepages_fill(struct page *page,
|
|||
* under writeback, so we can release the page lock.
|
||||
*/
|
||||
if (data->wpa == NULL) {
|
||||
struct fuse_inode *fi = get_fuse_inode(inode);
|
||||
|
||||
err = -ENOMEM;
|
||||
wpa = fuse_writepage_args_alloc();
|
||||
if (!wpa) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user