X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=Documentation%2Ffilesystems%2Fdirectory-locking;h=4e32cb961e5b7ff60f0abf3864702e01008a5aa2;hb=d117b9acaeada0b243f31e0fe83e111fcc9a6644;hp=c314badbcfc63c94b49f56a49dda4105f58b2d69;hpb=aa3a655b159f11b1afe0dcdac5fb5b172f02b778;p=karo-tx-linux.git diff --git a/Documentation/filesystems/directory-locking b/Documentation/filesystems/directory-locking index c314badbcfc6..4e32cb961e5b 100644 --- a/Documentation/filesystems/directory-locking +++ b/Documentation/filesystems/directory-locking @@ -19,7 +19,7 @@ locks victim and calls the method. Locks are exclusive. 4) rename() that is _not_ cross-directory. Locking rules: caller locks the parent and finds source and target. In case of exchange (with -RENAME_EXCHANGE in rename2() flags argument) lock both. In any case, +RENAME_EXCHANGE in flags argument) lock both. In any case, if the target already exists, lock it. If the source is a non-directory, lock it. If we need to lock both, lock them in inode pointer order. Then call the method. All locks are exclusive.