[lkml]   [2008]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch 21/47] reiserfs: discard prealloc in reiserfs_delete_inode
    2.6.25-stable review patch.  If anyone has any objections, please let us

    From: Jeff Mahoney <>

    commit eb35c218d83ec0780d9db869310f2e333f628702 upstream

    With the removal of struct file from the xattr code,
    reiserfs_file_release() isn't used anymore, so the prealloc isn't
    discarded. This causes hangs later down the line.

    This patch adds it to reiserfs_delete_inode. In most cases it will be a
    no-op due to it already having been called, but will avoid hangs with

    Signed-off-by: Jeff Mahoney <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>

    fs/reiserfs/inode.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/fs/reiserfs/inode.c
    +++ b/fs/reiserfs/inode.c
    @@ -45,6 +45,8 @@ void reiserfs_delete_inode(struct inode
    goto out;

    + reiserfs_discard_prealloc(&th, inode);
    err = reiserfs_delete_object(&th, inode);

    /* Do quota update inside a transaction for journaled quotas. We must do that

     \ /
      Last update: 2008-07-23 01:27    [W:0.019 / U:77.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site