[PATCH 1/2] jffs2: reset pino_nlink to 0 when inode creation failed

2019-02-20 Thread Hou Tao
So jffs2_do_clear_inode() could mark all flash nodes used by the inode as obsolete and GC procedure will reclaim these flash nodes, else these flash spaces will not be reclaimable forever. Cc: sta...@vger.kernel.org Signed-off-by: Hou Tao --- fs/jffs2/dir.c | 28 1

[PATCH 3.16 282/366] Btrfs: use insert_inode_locked4 for inode creation

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Chris Mason commit b0d5d10f41a0f1cd839408dd94427f2db3553bca upstream. Btrfs was inserting inodes into the hash table before we had fully set the inode up on disk. This leaves us open to rare

[PATCH 3.16 282/366] Btrfs: use insert_inode_locked4 for inode creation

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Chris Mason commit b0d5d10f41a0f1cd839408dd94427f2db3553bca upstream. Btrfs was inserting inodes into the hash table before we had fully set the inode up on disk. This leaves us open to rare

[PATCH v3] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
uota */ int i_inline_xattr_size;/* inline xattr size */ + struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3205,6 +3207,11 @@ static inline int f2fs_sb_has_quota_ino(struct super_block *sb) return

[PATCH v3] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
ne_xattr_size;/* inline xattr size */ + struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3205,6 +3207,11 @@ static inline int f2fs_sb_has_quota_ino(struct super_block *sb) return F2FS_HAS_FEATURE(sb, F2FS_FEAT

Re: [PATCH v2] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
t;>> #define F2FS_HAS_FEATURE(sb, mask) \ >>> ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) >>> @@ -635,6 +636,7 @@ struct f2fs_inode_info { >>> int i_extra_isize; /* size of extra

Re: [PATCH v2] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
URE(sb, mask) \ >>> ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) >>> @@ -635,6 +636,7 @@ struct f2fs_inode_info { >>> int i_extra_isize; /* size of extra space located in >>> i_addr */ >>

Re: [PATCH v2] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
, mask) \ >> ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) >> @@ -635,6 +636,7 @@ struct f2fs_inode_info { >> int i_extra_isize; /* size of extra space located in >> i_addr */ >>

Re: [PATCH v2] f2fs: support inode creation time

2018-01-24 Thread Chao Yu
t; ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) >> @@ -635,6 +636,7 @@ struct f2fs_inode_info { >> int i_extra_isize; /* size of extra space located in >> i_addr */ >> kprojid_t i_projid; /* id for project quota */ >

Re: [PATCH v2] f2fs: support inode creation time

2018-01-23 Thread Jaegeuk Kim
\ > ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) > @@ -635,6 +636,7 @@ struct f2fs_inode_info { > int i_extra_isize; /* size of extra space located in > i_addr */ > kprojid_t i_projid; /* id for proje

Re: [PATCH v2] f2fs: support inode creation time

2018-01-23 Thread Jaegeuk Kim
gt;raw_super->feature & cpu_to_le32(mask)) != 0) > @@ -635,6 +636,7 @@ struct f2fs_inode_info { > int i_extra_isize; /* size of extra space located in > i_addr */ > kprojid_t i_projid; /* id for project quota */ > int i_inline_xattr_size;

[PATCH v2] f2fs: support inode creation time

2018-01-22 Thread Chao Yu
/* id for project quota */ int i_inline_xattr_size;/* inline xattr size */ + struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3205,6 +3207,11 @@ static inline int f2fs_sb_has_quota_in

[PATCH v2] f2fs: support inode creation time

2018-01-22 Thread Chao Yu
ne_xattr_size;/* inline xattr size */ + struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3205,6 +3207,11 @@ static inline int f2fs_sb_has_quota_ino(struct super_block *sb) return F2FS_H

[PATCH] f2fs-tools: support inode creation time

2018-01-22 Thread Chao Yu
This patch supports inode_crtime feature to enable recording inode creation time in inode layout. Signed-off-by: Chao Yu <yuch...@huawei.com> --- fsck/mount.c| 7 +++ include/f2fs_fs.h | 3 +++ mkfs/f2fs_format.c | 5 + mkfs/f2fs_format_main.c | 7 +++ 4

[PATCH] f2fs-tools: support inode creation time

2018-01-22 Thread Chao Yu
This patch supports inode_crtime feature to enable recording inode creation time in inode layout. Signed-off-by: Chao Yu --- fsck/mount.c| 7 +++ include/f2fs_fs.h | 3 +++ mkfs/f2fs_format.c | 5 + mkfs/f2fs_format_main.c | 7 +++ 4 files changed, 22

[PATCH] f2fs: support inode creation time

2018-01-22 Thread Chao Yu
* inline xattr size */ + struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3206,6 +3208,11 @@ static inline int f2fs_sb_has_quota_ino(struct super_block *sb) return F2FS_HAS_FEATURE(sb, F2FS_FEATURE_QUOTA_INO);

[PATCH] f2fs: support inode creation time

2018-01-22 Thread Chao Yu
struct timespec i_crtime; /* inode creation time */ }; static inline void get_extent_info(struct extent_info *ext, @@ -3206,6 +3208,11 @@ static inline int f2fs_sb_has_quota_ino(struct super_block *sb) return F2FS_HAS_FEATURE(sb, F2FS_FEATURE_QUOTA_INO); } +stat

[PATCH 1/8] GFS2: Clean up inode creation path

2013-04-26 Thread Steven Whitehouse
This patch cleans up the inode creation code path in GFS2. After the Orlov allocator was merged, a number of potential improvements are now possible, and this is a first set of these. The quota handling is now updated so that it matches the point in the code where the allocation takes place

[PATCH 2/8] GFS2: Remove gfs2_refresh_inode from inode creation path

2013-04-26 Thread Steven Whitehouse
The original method for creating inodes used in GFS2 was to fill out a buffer, with all the information, and then to read that buffer into the in-core inode, using gfs2_refresh_inode() The problem with this approach is that all the inode's fields need to be calculated ahead of time, and were

[PATCH 2/8] GFS2: Remove gfs2_refresh_inode from inode creation path

2013-04-26 Thread Steven Whitehouse
The original method for creating inodes used in GFS2 was to fill out a buffer, with all the information, and then to read that buffer into the in-core inode, using gfs2_refresh_inode() The problem with this approach is that all the inode's fields need to be calculated ahead of time, and were

[PATCH 1/8] GFS2: Clean up inode creation path

2013-04-26 Thread Steven Whitehouse
This patch cleans up the inode creation code path in GFS2. After the Orlov allocator was merged, a number of potential improvements are now possible, and this is a first set of these. The quota handling is now updated so that it matches the point in the code where the allocation takes place

[GFS2] Fix glock ordering on inode creation [54/70]

2006-11-30 Thread Steven Whitehouse
>From 28626e2078571c4b776a17eaa486bbd2b7dfe2cd Mon Sep 17 00:00:00 2001 From: Steven Whitehouse <[EMAIL PROTECTED]> Date: Wed, 22 Nov 2006 11:13:21 -0500 Subject: [PATCH] [GFS2] Fix glock ordering on inode creation The lock order here should be parent -> child rather than numeric or

[GFS2] Fix glock ordering on inode creation [54/70]

2006-11-30 Thread Steven Whitehouse
From 28626e2078571c4b776a17eaa486bbd2b7dfe2cd Mon Sep 17 00:00:00 2001 From: Steven Whitehouse [EMAIL PROTECTED] Date: Wed, 22 Nov 2006 11:13:21 -0500 Subject: [PATCH] [GFS2] Fix glock ordering on inode creation The lock order here should be parent - child rather than numeric order. Signed-off

[PATCH] reiserfs: fix deadlock in inode creation failure path w/ default ACL

2005-07-18 Thread Jeff Mahoney
reiserfs_new_inode() can call iput() with the xattr lock held. This will cause a deadlock to occur when reiserfs_delete_xattrs() is called to clean up. The following patch releases the lock and reacquires it after the iput. This is safe because interaction with xattrs is complete, and the

[PATCH] reiserfs: fix deadlock in inode creation failure path w/ default ACL

2005-07-18 Thread Jeff Mahoney
reiserfs_new_inode() can call iput() with the xattr lock held. This will cause a deadlock to occur when reiserfs_delete_xattrs() is called to clean up. The following patch releases the lock and reacquires it after the iput. This is safe because interaction with xattrs is complete, and the

Inode creation

2001-05-14 Thread Blesson Paul
Hi all Thanks for the replies regarding inodes. From the replies I understood that inode numbers are assigned at the time of accessing in the case of msdos and nfs files. And it may change during running if it is not being accessed. Now the question is who is

Inode creation

2001-05-14 Thread Blesson Paul
Hi all Thanks for the replies regarding inodes. From the replies I understood that inode numbers are assigned at the time of accessing in the case of msdos and nfs files. And it may change during running if it is not being accessed. Now the question is who is