diff options
author | Shakeel Butt <shakeelb@google.com> | 2018-01-13 13:29:24 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-01-15 16:06:13 +1100 |
commit | df74336f4fd9d9df4f6d3d20cffb79673158b3c8 (patch) | |
tree | 6a2b761cc6b355c98ccb1d1c212bb3b1783c08b5 | |
parent | c19c98f3f4dc5f0df0911cabf6b1705f5cdc2e10 (diff) |
vfs: remove might_sleep() from clear_inode()
7994e6f72543 ("vfs: Move waiting for inode writeback from end_writeback()
to evict_inode()") removed inode_sync_wait() from end_writeback() and
commit dbd5768f87ff ("vfs: Rename end_writeback() to clear_inode()")
renamed end_writeback() to clear_inode(). After these patches there is no
sleeping operation in clear_inode(). So, remove might_sleep() from it.
Link: http://lkml.kernel.org/r/20171108004354.40308-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Greg Thelen <gthelen@google.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | fs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c index e2ca0f4b5151..ef362364d396 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -498,7 +498,6 @@ EXPORT_SYMBOL(__remove_inode_hash); void clear_inode(struct inode *inode) { - might_sleep(); /* * We have to cycle tree_lock here because reclaim can be still in the * process of removing the last page (in __delete_from_page_cache()) |