NODIRATIME patch for 2.1.73

Richard Gooch (rgooch@atnf.CSIRO.AU)
Fri, 19 Dec 1997 14:08:10 +1100


Hi, Linus. The following patch adds MS_NODIRATIME support to
2.1.73. When a filesystem is mounted with MS_NODIRATIME then reading
directories does not change the atime for those directories.

I've been finding that operations like:
% find / -name dummy -ls
% sync

or:
% du -s /
% sync

take a long time to do the sync, because the directory atimes are
being updated & written. This patch allows me to mount my FS's with
nodiratime, and said operations are now much faster.

Could you please include this for 2.1.74?

Regards,

Richard....

begin 644 nodiratime-patch.gz
M'XL("%?CF30"`VYO9&ER871I;64M<&%T8V@`M5=MC]I&$/YL?L4DD:YPO-GF
MG6NB(X>OH3G@Q$N:2)60L9=@%=O47J>'PO6W=W;7!AML[KX4(=EXYID=/_/,
M[&):JQ64`V\$&\L)GLIJ1:FT:M657R5/5*U:CFN2BB&,IT]SY7+Y(DR:K0/X
M/=B`T@*YUE6;754!I=-IY8K%8GI,Z=ZSH$\,=`-%[:J=KMH6D-M;*#=J<JD)
M17919+B]S8$D<6#Y@[70*?46JXW^W8?]>^C-9I/%_4/OM\5HW)L-AMI-POG@
M-YS&'9YS1<E:03[T"RHLMX55B0!7H'V=J8CH#R8<A$L4X">B7I-'!+I)^"=3
MB?L\YP"_.?"I3BT#+(<"SR?8FCHE"QXA[U,O,"CP'W`MKB7N:[H+?^<8!4Y=
ML]E@U#6;G9)2$]0]`]GX!+,_)^;J/?R;9$;*I`1=0U(B1D3N@LF(MS0>3IG+
M9B)S]?<I!>'+1^]6S'ZW5RT0>[W$$DPKD/&&O<=';=0OI#*+;S<-'6YRY@O=
MYQIT<]Y]XNF%[A,.TA_$Y-T''9`[7;G5;70RNR^$7.R^IL(5I!Q[[\5^DE@5
MTCQ/!<8J$.,RI<N8RZNDPI<L2J^I>[P\!K5L@GJZFT\FVFBV.'C8NO>7Z+6%
M:7ET)X9#@=L\0@//`?E2*?U@2[QX%<,'J04,;=(L(+P0H(+<Z-;J725M<D;>
M%\NFME56-W9IB;K]9*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