From: Thorsten Blum <thorsten.blum@linux.dev>
To: Evgeniy Dushistov <dushistov@mail.ru>
Cc: Thorsten Blum <thorsten.blum@linux.dev>, linux-kernel@vger.kernel.org
Subject: [RESEND PATCH] ufs: Remove unused ufs_old_cylinder_group struct and related macros
Date: Fri, 18 Oct 2024 23:51:35 +0200 [thread overview]
Message-ID: <20241018215135.163634-2-thorsten.blum@linux.dev> (raw)
The struct and the macros are no longer used. Remove them.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
fs/ufs/ufs_fs.h | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/fs/ufs/ufs_fs.h b/fs/ufs/ufs_fs.h
index ef9ead44776a..3dedbebcfc92 100644
--- a/fs/ufs/ufs_fs.h
+++ b/fs/ufs/ufs_fs.h
@@ -521,15 +521,6 @@ struct ufs_super_block {
#define CG_MAGIC 0x090255
#define ufs_cg_chkmagic(sb, ucg) \
(fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)
-/*
- * Macros for access to old cylinder group array structures
- */
-#define ufs_ocg_blktot(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_btot)
-#define ufs_ocg_blks(sb, ucg, cylno) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_b[cylno])
-#define ufs_ocg_inosused(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_iused)
-#define ufs_ocg_blksfree(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_free)
-#define ufs_ocg_chkmagic(sb, ucg) \
- (fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)
/*
* size of this structure is 172 B
@@ -575,28 +566,6 @@ struct ufs_cylinder_group {
/* actually longer */
};
-/* Historic Cylinder group info */
-struct ufs_old_cylinder_group {
- __fs32 cg_link; /* linked list of cyl groups */
- __fs32 cg_rlink; /* for incore cyl groups */
- __fs32 cg_time; /* time last written */
- __fs32 cg_cgx; /* we are the cgx'th cylinder group */
- __fs16 cg_ncyl; /* number of cyl's this cg */
- __fs16 cg_niblk; /* number of inode blocks this cg */
- __fs32 cg_ndblk; /* number of data blocks this cg */
- struct ufs_csum cg_cs; /* cylinder summary information */
- __fs32 cg_rotor; /* position of last used block */
- __fs32 cg_frotor; /* position of last used frag */
- __fs32 cg_irotor; /* position of last used inode */
- __fs32 cg_frsum[8]; /* counts of available frags */
- __fs32 cg_btot[32]; /* block totals per cylinder */
- __fs16 cg_b[32][8]; /* positions of free blocks */
- __u8 cg_iused[256]; /* used inode map */
- __fs32 cg_magic; /* magic number */
- __u8 cg_free[1]; /* free block map */
-/* actually longer */
-};
-
/*
* structure of an on-disk inode
*/
--
2.47.0
reply other threads:[~2024-10-18 21:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241018215135.163634-2-thorsten.blum@linux.dev \
--to=thorsten.blum@linux.dev \
--cc=dushistov@mail.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.