vfs: remove might_sleep() from clear_inode()

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/1a60e4d516defb5808967a8b42ac6675a3f05085
Commit:     1a60e4d516defb5808967a8b42ac6675a3f05085
Parent:     b0f7e32ca1a8748e8f7f355c9e31c450c2bfad2f
Refname:    refs/heads/master
Author:     Shakeel Butt <[email protected]>
AuthorDate: Tue Feb 6 15:40:59 2018 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Tue Feb 6 18:32:47 2018 -0800

    vfs: remove might_sleep() from clear_inode()
    
    Commit 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/[email protected]
    Signed-off-by: Shakeel Butt <[email protected]>
    Cc: Alexander Viro <[email protected]>
    Cc: Greg Thelen <[email protected]>
    Cc: Jan Kara <[email protected]>
    Cc: Michal Hocko <[email protected]>
    Cc: Johannes Weiner <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
---
 fs/inode.c | 1 -
 1 file changed, 1 deletion(-)

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())
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.