From: Jens Axboe Date: Wed, 30 Jan 2008 11:24:48 +0000 (+0100) Subject: splice: always updated atime in direct splice X-Git-Tag: v2.6.25-rc1~1085^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8084870854fe181996c4aa4f44cb2fabcebf164c;p=linux-2.6-omap-h63xx.git splice: always updated atime in direct splice Andre Majorel points out that if we only updated the atime when we transfer some data, we deviate from the standard of always updating the atime. So change splice to always call file_accessed() even if splice_direct_to_actor() didn't transfer any data. Signed-off-by: Jens Axboe --- diff --git a/fs/splice.c b/fs/splice.c index 1577a7391d2..4ee49e86edd 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -1033,9 +1033,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd, done: pipe->nrbufs = pipe->curbuf = 0; - if (bytes > 0) - file_accessed(in); - + file_accessed(in); return bytes; out_release: