Re: [PATCH v2 2/7] xfs: Update checking excl. locks for ilock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -	ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
> +	ASSERT(xfs_is_ilocked(ip, XFS_ILOCK_EXCL));

I think this is a very bad interface.  Either we keep our good old
xfs_isilocked that just operates on the inode and lock flags, or
we use something that gets the actual lock passed.  But an interface
that encodes the lock in both the function called and the flags, and
one that doesn't follow neither the XFS lock flags conventions nor
the core kernel convention is just not very useful.



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux