diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-05-04 16:26:23 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-05 16:59:08 +0200 |
commit | d905fdaaa7d59abde1535075cca6774fd7f0ef0a (patch) | |
tree | e071d80fa8db77687d813c5768952f8ede8805c6 /fs/xfs/uuid.h | |
parent | cb0ba6cc22f372a2d42f9f2afc5a35f432cc61e2 (diff) | |
download | linux-d905fdaaa7d59abde1535075cca6774fd7f0ef0a.tar.gz linux-d905fdaaa7d59abde1535075cca6774fd7f0ef0a.tar.bz2 linux-d905fdaaa7d59abde1535075cca6774fd7f0ef0a.zip |
xfs: use the common helper uuid_is_null()
Use the common helper uuid_is_null() and remove the xfs specific
helper uuid_is_nil().
The common helper does not check for the NULL pointer value as
xfs helper did, but xfs code never calls the helper with a pointer
that can be NULL.
Conform comments and warning strings to use the term 'null uuid'
instead of 'nil uuid', because this is the terminology used by
lib/uuid.c and its users. It is also the terminology used in
userspace by libuuid and xfsprogs.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
[hch: remove now unused uuid.[ch]]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'fs/xfs/uuid.h')
-rw-r--r-- | fs/xfs/uuid.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/xfs/uuid.h b/fs/xfs/uuid.h deleted file mode 100644 index 5aea49bf0963..000000000000 --- a/fs/xfs/uuid.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. - * All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ -#ifndef __XFS_SUPPORT_UUID_H__ -#define __XFS_SUPPORT_UUID_H__ - -extern int uuid_is_nil(uuid_t *uuid); - -#endif /* __XFS_SUPPORT_UUID_H__ */ |