]> git.baikalelectronics.ru Git - kernel.git/commit
block/loop: Don't grab "struct file" for vfs_getattr() operation.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 8 Nov 2018 13:01:01 +0000 (14:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:30:09 +0000 (06:30 -0700)
commitb1ab5fa309e6c49e4e06270ec67dd7b3e9971d04
tree741aee7db445d6b6a360dbbf04abbf760fd2aaa3
parente051bd0ddfdd6696197ad8c12d7485fc68c39f7b
block/loop: Don't grab "struct file" for vfs_getattr() operation.

vfs_getattr() needs "struct path" rather than "struct file".
Let's use path_get()/path_put() rather than get_file()/fput().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c