lkml.org 
[lkml]   [2014]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.17 276/319] mm: Remove false WARN_ON from pagecache_isize_extended()
    Date
    3.17-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jan Kara <jack@suse.cz>

    commit f55fefd1a5a339b1bd08c120b93312d6eb64a9fb upstream.

    The WARN_ON checking whether i_mutex is held in
    pagecache_isize_extended() was wrong because some filesystems (e.g.
    XFS) use different locks for serialization of truncates / writes. So
    just remove the check.

    Signed-off-by: Jan Kara <jack@suse.cz>
    Reviewed-by: Dave Chinner <dchinner@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    mm/truncate.c | 1 -
    1 file changed, 1 deletion(-)

    --- a/mm/truncate.c
    +++ b/mm/truncate.c
    @@ -755,7 +755,6 @@ void pagecache_isize_extended(struct ino
    struct page *page;
    pgoff_t index;

    - WARN_ON(!mutex_is_locked(&inode->i_mutex));
    WARN_ON(to > inode->i_size);

    if (from >= to || bsize == PAGE_CACHE_SIZE)



    \
     
     \ /
      Last update: 2014-11-12 05:01    [W:4.185 / U:0.248 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site