Re: [PATCH] Btrfs: fix unexpected -EEXIST when creating new inode

2018-02-28 Thread Liu Bo
On Wed, Feb 28, 2018 at 04:06:40PM +, Filipe Manana wrote: > On Thu, Jan 25, 2018 at 6:02 PM, Liu Bo wrote: > > The highest objectid, which is assigned to new inode, is decided at > > the time of initializing fs roots. However, in cases where log replay > > gets processed, the btree which fs

Re: [PATCH] Btrfs: fix unexpected -EEXIST when creating new inode

2018-02-28 Thread Filipe Manana
On Thu, Jan 25, 2018 at 6:02 PM, Liu Bo wrote: > The highest objectid, which is assigned to new inode, is decided at > the time of initializing fs roots. However, in cases where log replay > gets processed, the btree which fs root owns might be changed, so we > have to search it again for the hig

Re: [PATCH] Btrfs: fix unexpected -EEXIST when creating new inode

2018-01-26 Thread Nikolay Borisov
On 25.01.2018 20:02, Liu Bo wrote: > The highest objectid, which is assigned to new inode, is decided at > the time of initializing fs roots. However, in cases where log replay > gets processed, the btree which fs root owns might be changed, so we > have to search it again for the highest object

Re: [PATCH] Btrfs: fix unexpected -EEXIST when creating new inode

2018-01-26 Thread Josef Bacik
On Thu, Jan 25, 2018 at 11:02:56AM -0700, Liu Bo wrote: > The highest objectid, which is assigned to new inode, is decided at > the time of initializing fs roots. However, in cases where log replay > gets processed, the btree which fs root owns might be changed, so we > have to search it again for

[PATCH] Btrfs: fix unexpected -EEXIST when creating new inode

2018-01-25 Thread Liu Bo
The highest objectid, which is assigned to new inode, is decided at the time of initializing fs roots. However, in cases where log replay gets processed, the btree which fs root owns might be changed, so we have to search it again for the highest objectid, otherwise creating new inode would end up