NTFS: 2.1.28 - Fix deadlock reported by Sergey Vlasov due to ntfs_put_inode().
- Fix deadlock in fs/ntfs/inode.c::ntfs_put_inode(). Thanks to Sergey Vlasov for the report and detailed analysis of the deadlock. The fix involved getting rid of ntfs_put_inode() altogether and hence NTFS no longer has a ->put_inode super operation. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* inode.h - Defines for inode structures NTFS Linux kernel driver. Part of
|
||||
* the Linux-NTFS project.
|
||||
*
|
||||
* Copyright (c) 2001-2005 Anton Altaparmakov
|
||||
* Copyright (c) 2001-2007 Anton Altaparmakov
|
||||
* Copyright (c) 2002 Richard Russon
|
||||
*
|
||||
* This program/include file is free software; you can redistribute it and/or
|
||||
@@ -101,8 +101,6 @@ struct _ntfs_inode {
|
||||
runlist attr_list_rl; /* Run list for the attribute list value. */
|
||||
union {
|
||||
struct { /* It is a directory, $MFT, or an index inode. */
|
||||
struct inode *bmp_ino; /* Attribute inode for the
|
||||
index $BITMAP. */
|
||||
u32 block_size; /* Size of an index block. */
|
||||
u32 vcn_size; /* Size of a vcn in this
|
||||
index. */
|
||||
@@ -300,8 +298,6 @@ extern void ntfs_clear_extent_inode(ntfs_inode *ni);
|
||||
|
||||
extern int ntfs_read_inode_mount(struct inode *vi);
|
||||
|
||||
extern void ntfs_put_inode(struct inode *vi);
|
||||
|
||||
extern int ntfs_show_options(struct seq_file *sf, struct vfsmount *mnt);
|
||||
|
||||
#ifdef NTFS_RW
|
||||
|
Reference in New Issue
Block a user