cachefiles: set default tag name if it's unspecified
authorJeffle Xu <jefflexu@linux.alibaba.com>
Fri, 14 Jan 2022 07:30:29 +0000 (15:30 +0800)
committerDavid Howells <dhowells@redhat.com>
Fri, 21 Jan 2022 21:36:28 +0000 (21:36 +0000)
commitc7ca73155762684a896ba57edf48519b645ea528
treefc5df843ee17dea73dd75e7990eb2a0d7d760929
parent5638b067d370583c6c455f019129ce33340b4142
cachefiles: set default tag name if it's unspecified

fscache_acquire_cache() requires a non-empty name, while 'tag <name>'
command is optional for cachefilesd.

Thus set default tag name if it's unspecified to avoid the regression of
cachefilesd. The logic is the same with that before rewritten.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/164251399914.3435901.4761991152407411408.stgit@warthog.procyon.org.uk/
fs/cachefiles/daemon.c